import Vue from 'vue'
import Router from 'vue-router'

import report from './map/report'
import home from './map/home'
import game from './map/game'
import trade from './map/trade'
import user from './map/user'
import promote from './map/promote'
import set from './map/set'
import login from './map/login'
import logout from './map/logout'
import error from './map/error'
import log from './map/log'
import order from './map/order';
Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    login
  ]
})

const dynamicRoutes0 = [
  {
    path: '*',
    redirect: '/error/404',
  },
  {
    path: '/',
    redirect: '/home',
  },
  report,
  home,
  game,
  trade,
  user,
  promote,
  set,
  log,
  order,
  logout,
  error,
]


export function getDynamicRoutes(level) {
  if (level == 0)
    return dynamicRoutes0
}